<template>
	<view>
		<view>
			<image class="img1" src="../../static/neiyu1.png"></image>
		</view>
		
		<view class="box1"> 
			<view style="padding-top: 14rpx; padding-left: 20rpx;"> 
			热门话题
			</view>
			<view style="margin: 5px;">
				<uni-row>
					<uni-col :span="12">
						<view  class="grid-item-box">
						<image style="width: 100%; height: 140px;" src="../../static/neiyu2.png" ></image>
						<view class="text-overlay"># 骑马 #</view>
						<view class="text-overlay2">55人参与  | 666人阅读</view>
						</view>
					</uni-col>
					<uni-col :span="12">
						<view  class="grid-item-box">
						<image style="width: 100%; height: 140px" src="../../static/neiyu3.png" ></image>
						<view class="text-overlay"># 橄榄球 #</view>
						<view class="text-overlay2">43人参与  | 537人阅读</view>
						</view>
					</uni-col>
				</uni-row>
			</view>
		</view>
		
		<view class="box2">
			<view style="display: flex;">
			<view class="span1">
				骑友圈
			</view>
			<view class="span2">
					更多 >
			</view>
			</view>
			<view style="margin: 5px;">
				<uni-row>
					<uni-col :span="12">
						<view  class="grid-item-box">
						<image style="width: 100%;" src="../../static/neiyu4.png" mode="widthFix"></image>
						</view>
						<text class="text1">4分钟前</text>
						<view class="v1">
							<image class="ax1" src="../../static/aixin2.png"></image>
							<text class="text2">12</text>
							<image class="s1" src="../../static/shuxian.png"></image>
							<image class="xx1" src="../../static/xinxi.png"></image>
							<text class="text3">32</text>
						</view>
						
					</uni-col>
					<uni-col :span="12">
						<view  class="grid-item-box">
						<image style="width: 100%;" src="../../static/neiyu5.png" mode="widthFix"></image>
						</view>
						<text class="text1">4分钟前</text>
						<view class="v1">
							<image class="ax1" src="../../static/aixin2.png"></image>
							<text class="text2">12</text>
							<image class="s1" src="../../static/shuxian.png"></image>
							<image class="xx1" src="../../static/xinxi.png"></image>
							<text class="text3">32</text>
						</view>
					
					</uni-col>
				
				</uni-row>
				<view class="flex-container">
					<image src="../../static/liwu.png" style="width: 30rpx;	height: 30rpx;"></image>
						<text>有礼分享</text>
				</view>
			</view>
					
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
			
		}
	}
</script>

<style>
	.img1{
		width: 100%;
		height: 310rpx;
	}
	.box1{
		width: 100%rpx;
		height: 350rpx;
		background-color: white;
	}
	.grid-item-box{
		display: flex;
		flex-direction: column;/* 纵向布局 */
		align-items: center;/* 纵向居中 */
		justify-content: center;/* 水平居中 */
		margin-left: 15rpx;
		
		position: relative; /* 为了让文本覆叠在图片上 */ 
	}
	.text-overlay {  
		position: absolute; /* 绝对定位 */  
		top: 40%; /* 垂直居中 */  
		left: 50%; /* 水平居中 */  
		transform: translate(-50%, -50%); /* 使文本居中 */  
		color: white; /* 文字颜色 */  
		font-size: 15px; /* 文字大小 */  
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* 文字阴影，便于阅读 */  
	}
	.text-overlay2 {
		position: absolute; /* 绝对定位 */  
		top: 60%; /* 垂直居中 */  
		left: 60%; /* 水平居中 */  
		transform: translate(-50%, -50%); /* 使文本居中 */  
		color: white; /* 文字颜色 */  
		font-size: 15px; /* 文字大小 */  
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* 文字阴影，便于阅读 */  
		width: 100%;
	}  
	.box2{
		width: 100%rpx;
		height: 500rpx;
		background-color: white;
		margin-top: 20rpx;
	}
	.span1{
		padding-top: 14rpx;
		padding-left: 20rpx;
		flex: 1;
		/*justify-content: space-between;  在容器内的子元素之间留间距，左侧和右侧对齐 */
					
	}
	.span2{
		padding-top: 14rpx;
		color: gainsboro;
		flex: 1;
		text-align: right;
	}
	.text1{
		margin-top: 5px;
		color: gainsboro;
		font-size: 25rpx;
		padding-left: 20rpx;
	}
	.ax1{
		width: 30rpx;
		height: 30rpx;
	}
	.text2{
		color: gainsboro; 
		font-size: 30rpx;

	}
	.text3{
		color: gainsboro;
		font-size: 30rpx;
	}
	.v1{
		padding-left: 60px;
	}
	.xx1{
		width: 30rpx;
		height: 30rpx;
		padding-left: 20px;
	}
	.s1{
		width: 30rpx;
		height: 30rpx;
		padding-left: 20px;
	}
	.flex-container {  
	  display: flex;  
	  justify-content: center; /* 水平居中 */  
	  align-items: center;     /* 垂直居中 */  
	margin-top: 20px;
	}  

</style>
